package com.base.bean;



/**
 * UserAreaId entity. @author MyEclipse Persistence Tools
 */

public class UserAreaId  implements java.io.Serializable {


    // Fields    

     private Integer uid;
     private String areaId;


    // Constructors

    /** default constructor */
    public UserAreaId() {
    }

    
    /** full constructor */
    public UserAreaId(Integer uid, String areaId) {
        this.uid = uid;
        this.areaId = areaId;
    }

   
    // Property accessors

    public Integer getUid() {
        return this.uid;
    }
    
    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getAreaId() {
        return this.areaId;
    }
    
    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }
   



   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof UserAreaId) ) return false;
		 UserAreaId castOther = ( UserAreaId ) other; 
         
		 return ( (this.getUid()==castOther.getUid()) || ( this.getUid()!=null && castOther.getUid()!=null && this.getUid().equals(castOther.getUid()) ) )
 && ( (this.getAreaId()==castOther.getAreaId()) || ( this.getAreaId()!=null && castOther.getAreaId()!=null && this.getAreaId().equals(castOther.getAreaId()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getUid() == null ? 0 : this.getUid().hashCode() );
         result = 37 * result + ( getAreaId() == null ? 0 : this.getAreaId().hashCode() );
         return result;
   }   





}